import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listInfo(query) {
  return request({
    url: '/manages/vehicle-info/queryVehicleInfo',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getInfo(vehicleId) {
  return request({
    url: '/manages/vehicle-info/queryVehicleInfoById/' + vehicleId,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addInfo(data) {
  return request({
    url: '/manages/vehicle-info/addVehicleInfo',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateInfo(data) {
  return request({
    url: '/manages/vehicle-info/updateVehicleInfo',
    method: 'post',
    data: data
  })
}
export function updateInfoById(id) {
  return request({
    url: '/manages/vehicle-info/queryVehicleInfoByVehicleId/' + id ,
    method: 'get',
  })
}

// 删除【请填写功能名称】
export function delInfo(vehicleId) {
  return request({
    url: '/manages/vehicle-info/deleteVehicleById/' + vehicleId,
    method: 'delete'
  })
}
